/*css reset*/
*{box-sizing: border-box}
*:before,*:after{box-sizing: border-box;}
*{margin: 0;padding: 0;}
ul,ol{list-style: none;}
a{color: inherit; text-decoration: none;}
/* 颜色设置为继承 */
img{max-width: 100%;max-height: 100%;}

/*style*/

body{
    background: #eeeeee; /*虽然body的区域只在前面部分，但是加background的时候会自动填充整个网页*/
}
.globalHeader {
margin: 20px;
}
@media(min-width:500px){
    .globalHeader {
        margin: 60px 0;
        }
}
.searchForm{
    display: flex;
    justify-content: space-between;  
    /* 两端顶住，中间内容分散 */
}
@media(min-width:500px){ /* 媒体查询：当宽度大于500时 */
    .searchForm{
        max-width: 400px; /* 限制输入栏的最大宽度 */
        margin-left: auto;
        margin-right: auto;
/* margin: 0 auto; 一般不这样写，因为0会覆盖其他的，所以一般用上面的方法 */
    }
}

.searchForm>input {  /* 宽度自适应 */
width: 100%;
margin-right: 10px;
height: 40px; /* button会默认跟它一样高 */
padding: 0 10px;
border: 1px solid #ddd; /* 替换他原有的自带border */
border-radius: 4px;
}
.searchForm>button {
white-space: nowrap; /* 强制不换行 */
padding: 0 28px;
border: 1px solid #ddd; /* 替换他原有的自带border */
border-radius: 4px;
background: #096DB6;
color: white;
font-size: 16px;
}

.globalMain {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.siteList {
    display: flex;
    flex-wrap: wrap; /* 要换行 */
    margin: 20px 20px;
    justify-content: space-between;  /* space-between做PC版中间布局不对，但是在手机端我们又需要保留，用媒体查询 */
}
@media (min-width:500px){
    .siteList{
        margin-left: 0;
        margin-right:-25px;
        justify-content: flex-start;/* 把justify-content变成默认的形式 */
    }
}
.siteList >li {
    margin-bottom: 10px;
}
@media(min-width:500px){
    .siteList >li {
        margin-right: 25px;
    }
}
.siteList .site {
    width: 160px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 0;
    position: relative;
    cursor: pointer; /* 鼠标放上去标变成一个手形 */
}
.siteList .site>.logo {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center; /* 主轴对齐 */
    align-items: center; /* 次轴对齐 */
    font-size: 12px;
    text-transform: uppercase; /* 把字母变成大写 */
}
.siteList .site>.link {
    font-size: 14px;
    margin-top: 4px;
}
.siteList .site>.close {
    position: absolute;
    bottom: 5px;
    right: 8px;
}
@media(min-width:500px){
    .siteList .site>.close {
        display: none;
    }
    .siteList .site:hover > .close{
        display: block;
        cursor: default;/* 手形变成箭头 */
    }
}
.siteList .addButton {
    width: 160px;
    border: 1px solid #ddd;
    background: white;
    padding: 20px 0;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.siteList .addButton .icon{
width: 60px;
height: 60px;
}
.siteList .addButton>.iconWrapper{
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.siteList .addButton>.text{
    font-size: 14px;
    margin-top: 4px;
}

/* .shade {
    background-color: gray;
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height:100%;
} */

.load {
    background-color: rgba(232, 232, 232,0.9);
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height:100%; 
}

.load img {
    height: 50%;
    top:50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}